import React ,{Component} from 'react';
import Input1 from './Input1';
import './../base.less';
import './../index.css';
import Detail from './Detail';

class Form1 extends Component{

    state = {
        title:'我是form1'
    }

    constructor(props){
        super(props);
        this.state = {
            title:'我是form1 在constructor里设置的'
        }
    }
    render(){
        return (<div className='con'>
            <Detail />
            <p>{this.state.title}</p>
            <span>{this.props.quote}</span>
            <Input1
                unit={<span>M</span>}
            >
                <span className="t-title">高度:</span>
                <div>aaaa</div>
            </Input1>
        </div>)
    }
};

export default Form1;